doctype html
html
  head
    title OA
    = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload'
    = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
    = csrf_meta_tags
    meta charset="utf-8"
  body
    = render 'layouts/header'
    .container-fluid
      = yield

javascript:

 $(function(){
    $('.datetimepicker').datepicker({
          format: "yyyy-mm-dd",
          language: "zh-CN",
          clearBtn: true,
          autoclose: true,
          todayHighlight: true
      });
  });
